package com.eos.control.action.goods;

import java.util.HashMap;
import java.util.Map;

import com.eos.business.service.SysDeliverReceiptBusinessService;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.ViewReceiptList;

public class DeleteBillOfSignAction extends AbstractBaseAction {
	private static final long serialVersionUID = 574704320188428246L;
	private Integer billOfSignId; 
	private ViewReceiptList viewReceipt;
	
	public void setBillOfSignId(Integer billOfSignId) {
		this.billOfSignId = billOfSignId;
	}

	public ViewReceiptList getViewReceipt() {
		return viewReceipt;
	}

	@Override
	public String execute() {
		try {
			SysDeliverReceiptBusinessService sdbs = new SysDeliverReceiptBusinessService();
			Map<String, String> map = new HashMap<String, String>();
			map.put("cur_page", "1");
			map.put("page_size", "1");
			map.put("id", billOfSignId+"");
			map.put("table_name", "view_receipt_list");
			viewReceipt = sdbs.getViewReceiptList(map);
		} catch (Exception e) {
			e.printStackTrace(); 
		}
		return SUCCESS;
	}
}
